package club.hicode.daydayup.monitor;

import cn.hutool.system.HostInfo;
import cn.hutool.system.OsInfo;
import org.junit.Test;

import java.util.HashSet;

/**
 * 根据Hutool获取信息
 * @author Liu Chunfu
 * @date 2018-08-24 上午10:42
 **/
public class HutoolTest {

	@Test
	public void info() {
		OsInfo osInfo=new OsInfo();
		String infoName = osInfo.getName();
		String arch = osInfo.getArch();
		String version = osInfo.getVersion();

		HostInfo hostInfo=new HostInfo();
		String address = hostInfo.getAddress();
		String hostName = hostInfo.getName();

	}
}
